
How to install SDK for Borland/Watcom compilers
-----------------------------------------------

All source files are the same for all platforms and are compiled using the
same makefile. You need to specify target in the command line:

        make -D__WATCOMC__ -D__MSDOS__                  -- for 32 bit MSDOS
        make -D__WATCOMC__ -U__MSDOS__                  -- for 32 bit OS/2
        make -D__NT__      -U__MSDOS__                  -- for 32 bit WIN32

32 bit MSDOS or OS/2 version can be created only by Watcom running
under MSDOS or OS/2.
32 bit WIN32 version can be created only by Borland C++ CBuilder v4.0
Probably the old BCC v5.2 will work too, but I didn't check it.
I didn't test other Watcom versions, maybe you can use higher versions too.

It's good idea to create command files to invoke make, since the command
line gets long...
See examples in MODULE\*.bat

-----------------------------------------------

        Installation:

0. Unzip the archive with -d switch:

        pkunzip -d idasdk.zip

1. Edit files
        allmake.mak             modify pathes to your compilers
        *.cfg                   compiler configuration files

2. Set environment variable IDA to point to directory with the SDK. There must
   be file named allmake.mak in this directory:

        set IDA=c:\idasdk\

   (you may use *.BAT files from the distributive for compilation,
   just don't forget to edit them too)

3. Add compiler directory to PATH because the compiler and other utilities
   will be called from makefiles w/o path.
   Copy BIN\PEUTIL.EXE to some directory in the PATH.

4. Compile and build utilities in ETC directory. See ETC\README file.

        That's all.

-----------------------------------------------

        Directories in the SDK:


INCLUDE         - header file
MODULE/EXAMPLE          - a real example of a disassembler module (intel 8051)
MODULE/EXAMPLE/WAT.OS2  - output directory for OS/2 object files
MODULE/EXAMPLE/WAT.D32  - output directory for MSDOS 32bit object files
MODULE/EXAMPLE/BOR.W32  - output directory for WIN32 object files
LDR/SAMPLE              - a real example of a loader module (w32run)
LIBWAT.D32      - 32bit libraries for MSDOS
LIBWAT.OS2      - libraries for OS/2
LIBBOR.W32      - libraries for WIN32
BIN             - directory with SDK utilities
                  DOS32 result files will appear here
BIN/OS2         - ditto for OS/2
BIN/W32         - ditto for Win32
D32WAT.CFG      - Compiler configuration file for Watcom, target 32bit MSDOS
                  Don't forget to edit it (modify directories)!
OS2WAT.CFG      - Compiler configuration file for Watcom, target 32bit OS/2
                  Don't forget to edit it (modify directories)!
W32BOR.CFG      - Compiler configuration file for BCC 5.02, target WIN32
                  Don't forget to edit it (modify directories)!
ALLMAKE.MAK    - 'make' configuration file. You should edit pathes to
                  compilers here.
README          - this file.

Directory include should be accessible as $(IDA)include
Directory lib     should be accessible as $(IDA)lib
Directory bin     should be accessible as $(IDA)bin
Files *.cfg and allmake.mak should be in directory $(IDA)

Other files (including sources of your module) can be located anywere.

